package com.qkl.xiatang.app.entity.wvp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
@TableName(value = "wvp_playurl")
public class WvpPlayurlEntity {

    @TableId(type= IdType.ASSIGN_ID)
    private String id;

    private String channelId;

    private String stream;

    private String flv;

    private String fmp4;

    private String hls;

    private String httpsFlv;

    private String httpsFmp4;

    private String httpsHls;

    private String httpsTs;

    private String rtc;

    private String rtcs;

    private String rtmp;

    private String rtmps;

    private String rtsp;

    private String rtsps;

    private String ts;

    private String wsFlv;

    private String wsFmp4;

    private String wsHls;

    private String wsTs;

    private String wssFlv;

    private String wssFmp4;

    private String wssHls;

    public void urlTrim(){
        id = StringUtils.trimToEmpty(id);
        channelId = StringUtils.trimToEmpty(channelId);
        stream = StringUtils.trimToEmpty(stream);
        flv = StringUtils.trimToEmpty(flv);
        fmp4 = StringUtils.trimToEmpty(fmp4);
        hls = StringUtils.trimToEmpty(hls);
        httpsFlv = StringUtils.trimToEmpty(httpsFlv);
        httpsFmp4 = StringUtils.trimToEmpty(httpsFmp4);
        httpsHls = StringUtils.trimToEmpty(httpsHls);
        httpsTs = StringUtils.trimToEmpty(httpsTs);
        rtc = StringUtils.trimToEmpty(rtc);
        rtcs = StringUtils.trimToEmpty(rtcs);
        rtmp = StringUtils.trimToEmpty(rtmp);
        rtmps = StringUtils.trimToEmpty(rtmps);
        rtsp = StringUtils.trimToEmpty(rtsp);
        rtsps = StringUtils.trimToEmpty(rtsps);
        ts = StringUtils.trimToEmpty(ts);
        wsFlv = StringUtils.trimToEmpty(wsFlv);
        wsFmp4 = StringUtils.trimToEmpty(wsFmp4);
        wsHls = StringUtils.trimToEmpty(wsHls);
        wsTs = StringUtils.trimToEmpty(wsTs);
        wssFlv = StringUtils.trimToEmpty(wssFlv);
        wssFmp4 = StringUtils.trimToEmpty(wssFmp4);
        wssHls = StringUtils.trimToEmpty(wssHls);
    }

}
